package com.ty.controller;

import cn.hutool.json.JSONArray;
import com.ty.entity.Account;
import com.ty.service.EnumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController  //Handler
@RequestMapping("/api/enum")
public class EnumController {

    @Autowired
    private EnumService enumService;

    @GetMapping  //?enumClassName=ProductStatus
    public JSONArray select(String enumClassName) {

        return    enumService.select(enumClassName);
    }


}